package com.Cychat.auth.controller;

import com.Cychat.auth.entity.VO.LoginParamsVO;
import com.Cychat.auth.entity.VO.UserInfoVO;
import com.Cychat.auth.service.UserInfoService;
import com.Cychat.commons.entity.ResultMessage;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Auther: 刘博文
 * Date: 2025/11/6:11:12
 * Description: 用户资料控制器
 */
@RestController
@RequestMapping("/api/user/profile")

public class UserProfileController {
    @Autowired
    private UserInfoService userInfoService;

    @GetMapping("/getUserInfo/{getUserId}/{userId}")
    public ResultMessage<UserInfoVO> getUserInfo(@PathVariable("getUserId") Long getUserId,
                                                 @PathVariable("userId") Long userId) {
        return userInfoService.getUserInfo(getUserId);
    }
}
